+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
+1998-08-03 Federico Mena Quintero <federico@nuclecu.unam.mx>
+
+ * gtk/gtkctree.c (gtk_ctree_find_by_row_data_custom): New public
+ function to find a row by its data pointer using a custom
+ comparison function.
+
Sun Aug 02 22:58:00 1998 George Lebl <jirka@5z.com>
* gtk/gtkclist.c: draw the buttons during a "draw" as well,
return NULL;
}
+GtkCTreeNode *
+gtk_ctree_find_by_row_data_custom (GtkCTree *ctree,
+ GtkCTreeNode *node,
+ gpointer data,
+ GCompareFunc func)
+{
+ GtkCTreeNode *work;
+
+ while (node)
+ {
+ if (!func (GTK_CTREE_ROW (node)->row.data, data))
+ return node;
+ if (GTK_CTREE_ROW (node)->children &&
+ (work = gtk_ctree_find_by_row_data_custom
+ (ctree, GTK_CTREE_ROW (node)->children, data, func)))
+ return work;
+ node = GTK_CTREE_ROW (node)->sibling;
+ }
+ return NULL;
+}
+
gboolean
gtk_ctree_is_hot_spot (GtkCTree *ctree,
gint x,
GtkCTreeNode * gtk_ctree_find_by_row_data (GtkCTree *ctree,
GtkCTreeNode *node,
gpointer data);
+GtkCTreeNode * gtk_ctree_find_by_row_data_custom (GtkCTree *ctree,
+ GtkCTreeNode *node,
+ gpointer data,
+ GCompareFunc func);
gboolean gtk_ctree_is_hot_spot (GtkCTree *ctree,
gint x,
gint y);